package cn.hxzy.course.service;

import cn.hxzy.common.domain.Section;
import cn.hxzy.common.domain.vo.CoursewareVo;
import cn.hxzy.common.domain.vo.FileInfoVo;
import cn.hxzy.common.domain.vo.SectionVo;
import cn.hxzy.common.domain.vo.TaskVo;
import cn.hxzy.common.response.R;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author niuyi
 * @since 2024-06-22
 */
public interface SectionService extends IService<Section> {


    List<Section> sectionList(Integer chapterId);

    String  updateSectionName(@PathVariable Integer sectionId, @PathVariable String sectionName );

    int increaseSection(@RequestBody Section section);

    int deleteById(Integer sectionId);

    List<Section> getSectionByName(String sectionName);

    List<SectionVo> getList(Integer chapterId);

    List<CoursewareVo> getCoursewareSectionList(Integer courseId);

    List<TaskVo> getTaskSectionList(Integer courseId);

    List<FileInfoVo> getFileInfoSectionList(Integer courseId);

}
